package com.struts.converter;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.struts2.util.StrutsTypeConverter;

public class HobbiesConverter extends StrutsTypeConverter{

	@Override
	public Object convertFromString(Map context, String[] values, Class objClass) {
		List<String> hobbies = new ArrayList<String>() ;
		for (String hobby : values) {
			hobbies.add(hobby) ;
		}
		return hobbies ;
	}

	@Override
	public String convertToString(Map context, Object obj) {
		return null;
	}

}
